Tab Exists
AutomatR.Web.TabExists
The "Tab Exists" activity in AutomatR is designed for UI automation workflows, allowing you to determine the existence of a specific tab within a browser instance. This activity is useful when you need to check whether a particular webpage is open in the browser.
Properties
Name | Description |
---|---|
Input | |
Browser Type | Specifies the type of browser to check for the existence of the tab. Select the desired browser from the available options. |
Title | Specifies the title of the webpage to identify the tab. String variables containing the title of the webpage. |
URL | Specifies the URL of the webpage to identify the tab. String variables containing the URL of the webpage. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Tab Exists" activity. This can be useful for handling synchronization issues or waiting for the browser to load. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Exists | Outputs a Boolean result indicating whether the specified tab exists in the selected browser. Variables of relevant types (e.g., Boolean variables) to store the existence result. |
How to use:
- Drag and drop the "Tab Exists" activity onto the workflow.
- Select the desired browser type from the available options (e.g., Chrome, Firefox, Edge).
- Specify either the title or the URL of the webpage you want to check for in the "Title" or "URL" property.
- Optionally, configure the delay to wait before executing the "Tab Exists" activity.
- Execute the workflow to check the existence of the specified tab within the chosen browser.
Example: Consider an example where the "Tab Exists" activity is used to check if a tab with the title "My Dashboard" exists in the Chrome browser:
Tab Exists:
Browser Type: Chrome
Title: "My Dashboard"
Delay: 5 (seconds)
Exists: isTabExists
In this example, the activity checks whether a tab with the title "My Dashboard" exists in the Chrome browser. The result of the existence check is stored in the Boolean variable "isTabExists" for further handling in the workflow.